﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 托尔斯泰.Wishire.entity
{
    public class target_st
    {
        private int targetId;
        private int planId;
        private string targetCity;
        private string targetAddress;
        private string targetName;
        private string targetType;
        private double targetLat;
        private double targetLng;
        private int mustNight;
        private string empty;
        private int value;
        private int Tag;

        public target_st(int targetId, int planId, string targetCity, string targetAddress, string targetName, string targetType, float targetLat, float targetLng, int mustNight, string empty)
        {
            this.targetId = targetId;
            this.planId = planId;
            this.targetCity = targetCity;
            this.targetAddress = targetAddress;
            this.targetName = targetName;
            this.targetType = targetType;
            this.targetLat = targetLat;
            this.targetLng = targetLng;
            this.mustNight = mustNight;
            this.empty = empty;
        }
        public target_st()
        {
            targetId = 0;
            planId = 0;
            targetCity = "NULL";
            targetAddress = "NULL";
            targetName = "NULL";
            targetType = "NULL";
            targetLat = 0;
            targetLng = 0;
            mustNight = 0;
            empty = "NULL";
            value = 0;
            Tag = 0;
        }
        public int GetTargetId()
        { 
            return targetId;
        }

        public void SetTargetId(int value)
        {
            targetId = value;
        }

        public int GetPlanId()
        {
            return planId;
        }

        public void SetPlanId(int value)
        {
            planId = value;
        }

        public string GetTargetCity()
        {
            return targetCity;
        }

        public void SetTargetCity(string value)
        {
            targetCity = value;
        }

        public string GetTargetAddress()
        {
            return targetAddress;
        }

        public void SetTargetAddress(string value)
        {
            targetAddress = value;
        }

        public string GetTargetName()
        {
            return targetName;
        }

        public void SetTargetName(string value)
        {
            targetName = value;
        }

        public string GetTargetType()
        {
            return targetType;
        }

        public void SetTargetType(string value)
        {
            targetType = value;
        }

        public double GetTargetLat()
        {
            return targetLat;
        }

        public void SetTargetLat(double value)
        {
            targetLat = value;
        }

        public double GetTargetLng()
        {
            return targetLng;
        }

        public void SetTargetLng(double value)
        {
            targetLng = value;
        }

        public int GetMustNight()
        {
            return mustNight;
        }

        public void SetMustNight(int value)
        {
            mustNight = value;
        }

        public string GetEmpty()
        {
            return empty;
        }

        public void SetEmpty(string value)
        {
            empty = value;
        }
        public int GetValue()
        {
            return value;
        }

        public void SetValue(int t)
        {
            value = t;
        }
        public int GetTag()
        {
            return Tag;
        }

        public void SetTag(int t)
        {
            Tag = t;
        }
        public override string ToString()
        {
            /*private int targetId;
                private int planId;
                private string targetCity;
                private string targetAddress;
                private string targetName;
                private string targetType;
                private double targetLat;
                private double targetLng;
                private int mustNight;
                private string empty;*/
            string ans = "targetId = " + targetId + "\n";
            ans += "planId = " + planId + "\n";
            ans += "targetCity = \"" + targetCity + "\"\n";
            ans += "targetAddress = \"" + targetAddress + "\"\n";
            ans += "targetName = \"" + targetName + "\"\n";
            ans += "targetType = \"" + targetType + "\"\n";
            ans += "targetLat = " + targetLat + "\n";
            ans += "targetLng = " + targetLng + "\n";
            ans += "mustNight = " + mustNight + "\n";
            ans += "empty = \"" + empty + "\"\n";
            return ans;
        }
    }
}
